package com.sparrow.source.persistense.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sparrow.source.persistense.IasDeviceUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author bryceyung
 * @since 2024/12/8
 */
@Repository
public interface IasDeviceUserMapper extends BaseMapper<IasDeviceUser> {


    List<IasDeviceUser> selectDeviceUserList(Integer deviceId);

    Boolean saveOrUpdateBatchWithUid(@Param("deviceUserList") List<IasDeviceUser> deviceUserList);

    IasDeviceUser selectByUid(@Param("uid") Integer uid,@Param("deviceId") Integer deviceId);

}
